package work.timejay.user.entity.mqs;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import work.timejay.common.SuperModel;

/**
 * <p>
 * mq事务幂等表
 * </p>
 *
 * @author wwj
 * @since 2022-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mq_log")
@ApiModel(value="MqLog对象", description="mq事务幂等表")
public class MqLog extends SuperModel<MqLog> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "事务id")
    @TableField("tx_no")
    private String txNo;

    public MqLog(String txNo) {
        this.txNo = txNo;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
